package com.cg.controller;

import com.cg.config.jwt.JwtAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    private JwtAuthService jwtAuthService;
    @GetMapping("/login")
    public String login(String username,String password){
        return jwtAuthService.login(username,password);
    }
}
